package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("work_plan_assessment")
@ApiModel(value = "工作计划考核")
public class WorkPlanAssessment {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("年份")
    private Integer year;

    @ApiModelProperty("月份")
    private Integer month;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("部门")
    private String department;

    @ApiModelProperty("岗位")
    private String position;

    @ApiModelProperty("计划拟订")
    private String planMadeBy;

    @ApiModelProperty("直接上级")
    private String directSuperior;

    @ApiModelProperty("自评")
    private String selfAssessment;

    @ApiModelProperty("上级确认")
    private String superiorConfirmation;

    @ApiModelProperty("部长审核")
    private String ministerReview;

    @ApiModelProperty("人资确认")
    private String hrConfirmation;

    @ApiModelProperty("部长审核(再次)")
    private String ministerReviewAgain;

    @ApiModelProperty("人资确认(再次)")
    private String hrConfirmationAgain;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty("考核明细列表")
    private List<WorkPlanAssessmentDetail> details;
}